﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Acms.AcmsControls.ContentControls.FrontEnd
{
    public class TrueFalseContentControl : BaseContentControlDisplay<TrueFalseContentControlProperties>
    {
        public override bool IsEmpty
        {
            get { return Properties == null; }
        }

        public override void PropertiesLoaded(TrueFalseContentControlProperties properties)
        {
            if (properties != null)
            {
                this.Value = properties.Value;
            }
        }

        public bool Value { get; set; }

        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            //Empty control with nothing to render
        }
    }
}
